package com.tjh.springbootapi.service;

import com.koala.apiprototype.db.BaseService;
import com.koala.apiprototype.web.response.PageResult;
import com.tjh.springbootapi.entity.PageHelper;
import com.tjh.springbootapi.mapper.PageHelperMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务类
 * Generated on 2020-03-21
 */
@Service
public class PageHelperService extends BaseService<PageHelperMapper, PageHelper> {

    public PageResult<PageHelper> getPageHelperList() {
        List<PageHelper> pageHelperList = this.findAll();
        return new PageResult<>(pageHelperList);
    }
}
